home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Education
/
World of Education.iso
/
world_p
/
pcshx10a.zip
/
PCSHX10A.EXE
/
INSTALL.BAT
next >
Wrap
DOS Batch File
|
1991-12-04
|
15KB
|
388 lines
ECHO OFF
CLS
IF EXIST GET.EXE GOTO OK
IF NOT EXIST PCSHX10B.EXE GOTO M1
PCSHX10B
:OK
GOTO GO
:M1
PKUNZIP PCSHX10B
IF NOT EXIST PCSHX10B.EXE GOTO M2
PCSHX10B
GOTO GO
:M2
ECHO PCSHX10B.EXE is not in current directory: PC-Shakespeare cannot install.
PAUSE
GOTO NO
:GO
CLS
ECHO Welcome to PC-Shakespeare installation! The archive files PCSHX10A.EXE
ECHO and PCSHX10B.EXE together include a sample copy of PC-Shakespeare, this
ECHO installation batch program, and much else besides. They contain, however
ECHO only one play, King John. The five subsequent History plays, also part
ECHO of this sample package, should be available in the archive files named
ECHO PCSHX10C.EXE, which also holds the text-editor PC-Shakespeare defaults
ECHO to, and PCSHX10D.EXE. At least the contents of PCSHX10A.EXE, and any of
ECHO these other self-extracting archive files available to you should be on
ECHO the drive you plan to use and in an otherwise empty directory. The
ECHO installation can unzip archives containing these if the ZIP files have
ECHO the same filenames and PKUNZIP is available on your path.
ECHO ---
ECHO The installation program may try your patience, for the ensemble of disk
ECHO access, file dearchiving, and large batch programs proves mortal to the
ECHO celerity of thought, so instead you will find something here to read,
ECHO perhaps to try your patience at a higher level.
ECHO ---
ECHO PC-Shakespeare itself utilizes a number of cooperating programs. They are NOT
ECHO part of PC-Shakespeare, and are freely distributed. PC-Shakespeare is basically
ECHO a shell, as are communication programs, and the cooperating programs are
ECHO mostly intended as the predominantly UN*X-like extensions to your DOS operating
ECHO system which allow it to support a shell like PC-Shakespeare.
ECHO ---
PAUSE
CLS
ECHO The programs in UTILS.EXE may mostly be freely used and distributed (see their
ECHO docs). PC-Shakespeare can also use Vernon Buerg's superior shareware browser
ECHO LIST in place of its default browser. Most of the cooperating programs are
ECHO accompanied with all available documentation and auxilliary files, as is the
ECHO editor in PCSHX10C. Exceptions are PDSORT - this sample distribution does
ECHO not include its source-code, and AMENU from MENUKEYS, which links lines back
ECHO from browsers to quotation lists, used by permission of Laboratory Computer
ECHO Systems. The latter is archived with only a brief description of its
ECHO parent program.
ECHO ---
PAUSE
CLS
ECHO The initial installation of PC-Shakespeare will extract the specific
ECHO executables which cooperate with PC-Shakespeare. You are encouraged to learn
ECHO more about these programs by running UTILDOCS and GREPDOCS; self-extracting LHA
ECHO archives copied to a DOCSETC directory during PC-Shakespeare installation.
ECHO They are all very useful and interesting programs.
ECHO ---
ECHO PC-Shakespeare REQUIRES a hard disk (preferably cached) and a mouse. Honest.
ECHO ---
PAUSE
CLS
ECHO This installation should not be done from within a DOS menuing shell:
ECHO If one is currently running, please exit this installation program,
ECHO exit that shell and start again. Shells can make things iffy for the
ECHO Environment variables used by this installation program. Also shells can
ECHO interfere with installing TSR programs (the optional ones associated with the
ECHO current PC-Shakespeare are SDUMP and MENUKEYS). Hence if you intend to use a
ECHO DOS shell, you should either configure PC-Shakespeare as an application for
ECHO your shell so the shell gets out of the way (rather than invoke it from the
ECHO command line within the shell), or add the TSRs you use to your AUTOEXEC.BAT
ECHO file. You can use PC-Shakespeare's configuration screen to remove them from
ECHO its own setup, but you must decide for yourself where they belong in your
ECHO AUTOEXEC.BAT file; see the configuration screen for details. If you
ECHO find you do not need to put the TSRs into the AUTOEXEC.BAT, when you
ECHO exit PC-Shakespeare the memory they use will be released for other
ECHO uses. On this basis PC-Shakespeare will, I believe, get along with most
ECHO shells, though shells sometimes interfere with programs' speed.
ECHO ---
GET N "Do you wish to install PC-Shakespeare (Y)es or (N)o? "
IF "%GET%" == "Y" GOTO Y1
IF "%GET%" == "y" GOTO Y1
IF NOT EXIST PCSHX10B.EXE GOTO NO
DEL GET.EXE
DEL UTILS.EXE
DEL GNUFGREP.EXE
DEL PCSHX10B.TXT
GOTO NO
:Y1
ECHO ---
SET GET=PCSHX.EXE
IF NOT EXIST %GET% GOTO MS
SET GET=UTILS.EXE
IF NOT EXIST %GET% GOTO MS
SET GET=GNUFGREP.EXE
IF NOT EXIST %GET% GOTO MS
SET GET=0
GET YE
SET DRV1=%GET%
SET DRV=%DRV1%
GET Y
SET DRV1=%DRV1%:%GET%
SET GET=0
GET K %DRV%
SET DRV=%DRV1%
ECHO %DRV1%: has %GET% kb free: PC-Shakespeare installation needs about 1600 kb:
GET N " Do you wish to install PC-Shakespeare on this drive: (Y)es or (N)o? "
IF "%GET%" == "Y" GOTO Y3
IF "%GET%" == "y" GOTO Y3
GOTO NO
:Y3
MKDIR DOCSETC
MKDIR SHX-ARC
IF EXIST PCSHX10B.EXE GOTO S0
IF EXIST PCSHX10B.ZIP GOTO S0
COPY UTILS.EXE %DRV1%\SHX-ARC
COPY GNUFGREP.EXE %DRV1%\SHX-ARC
COPY GET.EXE %DRV1%\SHX-ARC
COPY PCSHX10B.TXT %DRV1%\SHX-ARC
DEL PCSHX10B.TXT
IF NOT EXIST PCSHX10B.INF GOTO S0C
COPY PCSHX10B.INF %DRV1%\SHX-ARC
DEL PCSHX10B.INF
GOTO S0C
:S0
IF NOT EXIST PCSHX10B.ZIP GOTO S0B
IF NOT EXIST PCSHX10B.INF GOTO S0B1
DEL PCSHX10B.INF
:S0B1
DEL PCSHX10B.EXE
:S0B
IF EXIST PCSHX10B.ZIP GOTO S0B2
IF NOT EXIST PCSHX10B.INF GOTO S0B2
COPY PCSHX10B.INF %DRV1%\SHX-ARC
DEL PCSHX10B.INF
:S0B2
DEL PCSHX10B.TXT
COPY PCSHX10B.* %DRV1%\SHX-ARC
DEL PCSHX10B.*
:S0C
IF EXIST PCSHX10C.EXE GOTO S1A
IF NOT EXIST PCSHX10C.ZIP GOTO S1
PKUNZIP PCSHX10C.ZIP
:S1A
IF NOT EXIST PCSHX10C.EXE GOTO S1
PCSHX10C
IF NOT EXIST PCSHX10C.ZIP GOTO S1B
IF NOT EXIST PCSHX10C.INF GOTO S1B1
DEL PCSHX10C.INF
:S1B1
DEL PCSHX10C.EXE
:S1B
IF EXIST PCSHX10C.ZIP GOTO S1B2
COPY PCSHX10C.INF %DRV1%\SHX-ARC
DEL PCSHX10C.INF
:S1B2
DEL PCSHX10C.TXT
COPY PCSHX10C.* %DRV1%\SHX-ARC
DEL PCSHX10C.*
:S1
IF EXIST PCSHX10D.EXE GOTO S2A
IF NOT EXIST PCSHX10D.ZIP GOTO S2
PKUNZIP PCSHX10D.ZIP
:S2A
IF NOT EXIST PCSHX10D.EXE GOTO S2
PCSHX10D
IF NOT EXIST PCSHX10D.ZIP GOTO S2B
IF NOT EXIST PCSHX10D.INF GOTO S2B1
DEL PCSHX10D.INF
:S2B1
DEL PCSHX10D.EXE
:S2B
IF EXIST PCSHX10D.ZIP GOTO S2B2
COPY PCSHX10D.INF %DRV1%\SHX-ARC
DEL PCSHX10D.INF
:S2B2
DEL PCSHX10D.TXT
COPY PCSHX10D.* %DRV1%\SHX-ARC
DEL PCSHX10D.*
:S2
IF EXIST PCSHX10A.EXE GOTO S3
IF EXIST PCSHX10A.ZIP GOTO S3
COPY PCSHX.EXE %DRV1%\SHX-ARC
COPY INSTALL.BAT %DRV1%\SHX-ARC
COPY README.1ST %DRV1%\SHX-ARC
COPY TUTOR.TXT %DRV1%\SHX-ARC
IF NOT EXIST PCSHX10A.INF GOTO S3C
COPY PCSHX10A.INF %DRV1%\SHX-ARC
DEL PCSHX10A.INF
GOTO S3C
:S3
IF NOT EXIST PCSHX10A.ZIP GOTO S3B
IF NOT EXIST PCSHX10A.INF GOTO S3B1
DEL PCSHX10A.INF
:S3B1
DEL PCSHX10A.EXE
:S3B
IF EXIST PCSHX10A.ZIP GOTO S3B2
COPY PCSHX10A.INF %DRV1%\SHX-ARC
DEL PCSHX10A.INF
:S3B2
COPY PCSHX10A.* %DRV1%\SHX-ARC
DEL PCSHX10A.*
:S3C
COPY README.1ST %DRV1%\DOCSETC
DEL README.1ST
UTILS
DEL UTILS.EXE
COPY UTILDOCS.EXE %DRV%\DOCSETC
DEL UTILDOCS.EXE
COPY MED.* %DRV%\DOCSETC
DEL MED.*
GNUFGREP
DEL GNUFGREP.EXE
COPY GREPDOCS.EXE %DRV%\DOCSETC
DEL GREPDOCS.EXE
PCSHX
DEL PCSHX.EXE
COPY *.INF %DRV%\DOCSETC
DEL *.INF
EDIT345
DEL EDIT345.EXE
COPY EDIT.DOC %DRV1%\DOCSETC
DEL EDIT.DOC
:Y8
SET HCFG=:%DRV1%:
ECHO ---
PAUSE
CLS
ECHO ---
ECHO If PCSHX10C.EXE is present in this installation, PC-Shakespeare will have
ECHO available its default text-editor, which is called, yes, EDIT. It is
ECHO version 3.45 by H. Wauchope from Trailing Edge Technology. It is very
ECHO small, very convenient and has an interesting and relevant complement of
ECHO features. Try it! However, PC-Shakespeare is designed to accept an editor
ECHO of your choice. See the configuration screen for all such
ECHO PC-Shakespeare options.
ECHO ---
SET HCFG=%HCFG%:EDIT
PAUSE
CLS
ECHO ---
ECHO Both current options for PC-Shakespeare's text browser may use
ECHO Chris Dunford's miniscule classic TSR screen-capture program SDUMP
ECHO to optionally link lines from text back into lists of references.
ECHO ---
ECHO PC-Shakespeare's default browser is the DOS version of LESS, a relatively
ECHO recent UN*X utility named in apposition to 'MORE' (but you see it allows
ECHO backward scrolling - so, LESS; and thereby also is it shown yet again that
ECHO LESS is more and conversely, MORE is less). The port of LESS to DOS was
ECHO performed by Dick Keily. LESS can make use of Laboratory Computer Systems'
ECHO admirable TSR AMENU from MENUKEYS to let your mouse bypass UN*X's
ECHO characteristically peculiar interface, but it is not required if you
ECHO would just as soon learn strange keystrokes. For linking lines, though,
ECHO LESS can only use SDUMP.
ECHO ---
PAUSE
CLS
ECHO ---
ECHO If you have Vernon Buerg's celebrated shareware browser program LIST in
ECHO your path, PC-Shakespeare can make use of it. With LIST you may use SDUMP or
ECHO the TSR AMENU program or both for linking lines. For those of you who
ECHO already know what LIST can do, here is another reason to register it.
ECHO ---
PAUSE
CLS
ECHO ---
ECHO AMENU from Laboratory Computer Systems' MENUKEYS allows a mouse and
ECHO menus with either the LESS or LIST text browsers.
ECHO ---
GET N " ...Do you wish to have AMENU on: (Y)es or (N)o? "
IF "%GET%" == "Y" GOTO MK
IF "%GET%" == "y" GOTO MK
GOTO PS
:MK
SET HCFG=%HCFG%:AMENU
:PS
SET HCFG=%HCFG%:SDUMP
CLS
ECHO ---
ECHO At this point SDUMP will be setup as resident when you enter PC-Shakespeare.
ECHO AMENU may join it, depending on your choice. Because these are Terminate and
ECHO Stay Resident programs, depending on what else resides in your system, setup
ECHO may result in the system hanging up. If this worst case happens, reboot, and
ECHO edit your AUTOEXEC.BAT file, temporarily putting 'REM ' at the beginning of
ECHO all lines which invoke TSRs. Then reboot again, enter PC-Shakespeare and use
ECHO its configuration screen to remove whichever of SDUMP, or AMENU are present.
ECHO Now you can try putting them into your AUTOEXEC.BAT file (instead of
ECHO PC-Shakespeare's setup) working your way up from the next-to-last line, or if
ECHO you thereby find the offending program, pluck it out. Remember, AMENU is not
ECHO absolutely necessary. For more information see PC-Shakespeare's
ECHO configuration screen.
ECHO ---
PAUSE
CLS
ECHO ---
ECHO Ubiquitous use is made from PC-Shakespeare of a modified version of the
ECHO UN*X-like utility SED (Stream EDitor). This one is a component of the Free
ECHO Software Foundation's GNU (Gnu's Not Unix). Very interesting. Also much used
ECHO are GNU's Boyer-Moore hybridized FGREP and GNUEGREP. GNUEGREP, which can
ECHO search by 'Regular Expressions' is not included in this distribution, but if
ECHO you have it in your path as 'GREP' PC-Shakespeare can use it. Also UN*X-like
ECHO from, I believe, Dan Kegel and those folks at Yoyodyne (...the People with
ECHO the Future in their hands...), the almost invisible disk-use utility DU.
ECHO ---
PAUSE
CLS
ECHO ---
ECHO PDSORT, written for the Public Domain by Don A. Williams sorts BIG files.
ECHO Erich Gans formidable FINREP (FINd-and-REPlace) had a past-life in CPM(!).
ECHO Little things are Bob Eyer's FAST line-counter LCNT; and the anonymous(?)
ECHO and unusual approach to TSR management, RELEASE.
ECHO ---
ECHO Thanks to each and all. Check them out.
ECHO ---
ECHO If PCSHX10C is present you will have available the novelty screen font
ECHO program MED. It is not integrated with PC-Shakespeare, though it can
ECHO entertainingly be used with it.
ECHO ---
DEL GET.EXE
SED -e "s/DRV1/%DRV1%/g" -e "s/DRV/%DRV1%/g" INSTALL.BAT > INSTALL.TMP
SED -n -f INS.SED INSTALL.TMP > INSTALL.TXT
COPY INSTALL.TXT %DRV%\DOCSETC
PAUSE
CLS
ECHO ---
ECHO This installation has done its darndest to move the archive elements
ECHO in this directory to the subdirectory %DRV1%\SHX-ARC.
ECHO So %DRV1% should now hold only necessary files.
ECHO The programs used only during this installation will be moved to
ECHO %DRV1%\DOCSETC. Nothing in DOCSETC is essential to the operation of
ECHO PC-Shakespeare, so you may peruse and delete therein at will. Among
ECHO those files is Bob Stephan's swiss-army-knife batch file utility GET,
ECHO capable of more elegant use than it has suffered at my hands in the
ECHO assemblage of this installation program.
ECHO ---
ECHO One reason for checking out the documentation of some of the cooperating
ECHO programs is to consider whether they belong somewhere on your directory
ECHO PATH, and if they should take the place of other programs you have in
ECHO current use. It is probable that is what these authors would like to see.
ECHO ---
COPY TUTOR.TXT %DRV%\DOCSETC
DEL TUTOR.TXT
DEL INS.SED
PAUSE
CLS
ECHO ---
ECHO ---
ECHO Hereafter when you want PC-Shakespeare, just type SHX from %DRV%.
ECHO PC-Shakespeare includes its own hypertext documentation: 'The Map' functions
ECHO as its table of contents. The left mouse button makes selections on
ECHO highlighted text. The right mouse button always gets you the System Menu.
ECHO You will find a copy of this installation text in %DRV%\DOCSETC
ECHO Print out TUTOR.TXT in %DRV%\DOCSETC for a short guided tour.
ECHO ---
ECHO ---
ECHO ---
ECHO PC-Shakespeare is written in Text Technology's HyperShell, a powerful
ECHO shareware DOS environment offering a panoply of facilities by means
ECHO of which it is possible to challenge both your own and Nick Taylor's
ECHO imagination; see the note HYPRSHEL.INF in the DOCSETC directory.
ECHO ---
ECHO --------------
ECHO ----------
ECHO Enjoy PC-Shakespeare
ECHO ---
ECHO !
PAUSE
SET DSK=
SHX HOME wait
SET HCFG=
DEL INSTALL.*
GOTO ED
:MS
CLS
ECHO %GET% is not in current directory: PC-Shakespeare cannot install.
PAUSE
:NO
SET DRV=
SET DRV1=
SET GET=
CLS
ECHO PC-Shakespeare was NOT installed!
:ED